﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CSDemo.Common;
using YZH.Net;

namespace CSDemo.YZH.Server
{
    class Program
    {
        static void Main(string[] args)
        {
            INetServerParser parser = new NetServerDataParser();
            ServiceHost<IProductService> driver = new ServiceHost<IProductService>(new YzhProductService(), parser);
            driver.StartServer(10050);

            Console.WriteLine(
               "YZH.Net 服务器启动成功. Press enter to stop...");
            Console.ReadLine();
            driver.StopServer();
        }
    }
}
